package vapor.aquila.client.game;

import com.google.gwt.user.client.ui.Image;

/**
 * A Tile is equivalent to one space on the map.  Along with the root terrain,
 * all upgrades and buildings are on it.  Units are not, as they tend to move
 * around frequently.
 * 
 * @author Travis Gockel
 */
public class Tile
{
	private Terrain terrain;
	
	public Tile(Terrain terrain)
	{
		this.terrain = terrain;
	}
	
	public Image getImage()
	{
		return terrain.getImagePrototype().createImage();
	}
	
	public TileStatistics getStatistics()
	{
		TileStatistics stats = new TileStatistics(terrain);
		return stats;
	}
}
